package com.yt.ootest.StratePattern;

import com.yt.ootest.StratePattern.Behavior.Fly.GoodFlyBehavior;
import com.yt.ootest.StratePattern.Behavior.Quack.GagaQuackBehavior;

/**
 * Created by Administrator on 2019/1/27 20:18
 */
public class GreenHeadDuck extends Duck {
    public GreenHeadDuck(){
        mFlyBehavior=new GoodFlyBehavior();
        mQuackBehavior=new GagaQuackBehavior();
    }
    @Override
    public void display() {
        System.out.println("Green head duck!");
    }
}
